﻿using YNTK.Dependency;

namespace YNTK.SimpleWorkflow.Entitys
{
    /// <summary>
    /// 当前处理节点信息请求模型
    /// </summary>
    [SuppressSniffer]
    public class CurrentDisposenNodeDto
    {
        /// <summary>
        /// 当前处理节点id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 当前处理节点名称
        /// </summary>
        public string nodeName { get; set; }

        /// <summary>
        /// 节点顺序
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 是否允许驳回
        /// </summary>
        public bool rejected { get; set; }

        /// <summary>
        /// 是否为发起人确认
        /// </summary>
        public bool confirm { get; set; }

        /// <summary>
        /// 是否需要签字
        /// </summary>
        public bool signature { get; set; }
    }

    /// <summary>
    /// 下一处理节点信息传输模型
    /// </summary>
    [SuppressSniffer]
    public class NextDisposenNodeDto
    {
        /// <summary>
        /// 下一处理节点id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 下一处理节点名称
        /// </summary>
        public string nodeName { get; set; }

        /// <summary>
        /// 节点顺序
        /// </summary>
        public long? sortCode { get; set; }

        /// <summary>
        /// 是否允许驳回
        /// </summary>
        public bool rejected { get; set; }

        /// <summary>
        /// 是否为发起人确认
        /// </summary>
        public bool confirm { get; set; }

        /// <summary>
        /// 是否需要签字
        /// </summary>
        public bool signature { get; set; }

        /// <summary>
        /// 一下节点可选处理人数据
        /// </summary>
        public List<NextNodeDisposenUserListDto> userList { get; set; }
    }

    /// <summary>
    /// 下一节点处理人数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class NextNodeDisposenUserListDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public string userId { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public string realName { get; set; }

        /// <summary>
        /// 签名文件图片服务器存储路径
        /// </summary>
        public string signature { get; set; }
    }
}
